Skip to content

Conversation

@Nagaprasadvr
Copy link
Contributor

@Nagaprasadvr Nagaprasadvr commented Dec 5, 2024

Goal

yellostone-vixen-parser crate helps with parsing accounts , instructions
We can automate the process of generating these rust acc and ixs parsers using codama idl so anyone can add this as a plugin and parse their program state and ixs effectively in rust

  • Add accounts_parser template
  • Add instructions_parser template
  • Add logic to parse codama idl and generate rust code for these parsers

@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2024

🦋 Changeset detected

Latest commit: 8604bcf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@codama/renderers-rust Patch
@codama/renderers-vixen-parser Patch
@codama/renderers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Nagaprasadvr Nagaprasadvr marked this pull request as draft December 5, 2024 07:04
@Nagaprasadvr Nagaprasadvr changed the title Integrate vixen parser with codama Integrate yellostone-vixen-parser with codama Dec 5, 2024
@Nagaprasadvr Nagaprasadvr marked this pull request as ready for review December 16, 2024 10:41
@Nagaprasadvr Nagaprasadvr force-pushed the vix-33-integrate-vixen-parser-with-codama branch from 07e0b77 to 8574dc8 Compare December 17, 2024 06:35
@Nagaprasadvr Nagaprasadvr force-pushed the vix-33-integrate-vixen-parser-with-codama branch from 63485d6 to c2c98a8 Compare December 23, 2024 07:25
@Nagaprasadvr Nagaprasadvr force-pushed the vix-33-integrate-vixen-parser-with-codama branch 3 times, most recently from b6f82dd to 7584669 Compare December 26, 2024 07:38
@Nagaprasadvr Nagaprasadvr changed the title Integrate yellostone-vixen-parser with codama Integrate yellowstone-vixen-parser with codama Jan 10, 2025
kespinola
kespinola previously approved these changes Jan 21, 2025
Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made a few comments and we need to make sure CI passes before this can be merged but looks good overall! Also I think this needs a quick rebase from the main branch.

I don't understand the entire logic around the rendered parsers but one thing I noticed is it seems to discriminate all accounts by length instead of using the information provided by the DiscriminatorNodes in the standard. Not sure if that's by design at the moment but thought it needed to be flagged.

@Nagaprasadvr Nagaprasadvr force-pushed the vix-33-integrate-vixen-parser-with-codama branch from 1bfe88c to f576eaf Compare January 23, 2025 13:27
@Nagaprasadvr Nagaprasadvr reopened this Jan 23, 2025
@Nagaprasadvr Nagaprasadvr force-pushed the vix-33-integrate-vixen-parser-with-codama branch from a79f7bc to 7252134 Compare January 23, 2025 13:39
Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI not passing sorry.

@Nagaprasadvr
Copy link
Contributor Author

CI not passing sorry.

Wil fix them

Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to commit the generated changes in e2e tests now.

@Nagaprasadvr
Copy link
Contributor Author

Just need to commit the generated changes in e2e tests now.

I don't see any local changes on my system

@lorisleiva
Copy link
Member

@Nagaprasadvr even after running the tests?

@Nagaprasadvr
Copy link
Contributor Author

Nagaprasadvr commented Jan 24, 2025

@Nagaprasadvr even after running the tests?

Yup, if u rerun the tests it might work ?

@lorisleiva
Copy link
Member

Strange, I also don't see any changes locally so it must be a CI thing. I'm trying to push commits to this branch to debug but it looks like I'm not allowed. Is there anything you can toggle to allow me to push to this PR?

@lorisleiva
Copy link
Member

We also need a changeset so we can trigger a publish of the new library on merge.

@Nagaprasadvr
Copy link
Contributor Author

Strange, I also don't see any changes locally so it must be a CI thing. I'm trying to push commits to this branch to debug but it looks like I'm not allowed. Is there anything you can toggle to allow me to push to this PR?

Will give u access

@Nagaprasadvr
Copy link
Contributor Author

We also need a changeset so we can trigger a publish of the new library on merge.

Wil add

@Nagaprasadvr
Copy link
Contributor Author

where do we add the changeset?

@lorisleiva
Copy link
Member

I've just done it but, for next time, you just run changeset in the root directory locally and follow the prompts.

Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're good to merge! 👌

@lorisleiva lorisleiva merged commit f70b407 into codama-idl:main Jan 28, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants